package com.jgp.sys.query;


import com.jgp.common.persistence.Model;

/**
 * 项目   jgp
 * 作者   loufei
 * 时间   2017/10/19
 */
public class Order {
    private Class<? extends Model> modelClass;
    private String field;
    private OrderDirection direction;

    public Order(String field,OrderDirection direction) {
        this.field = field;
        this.direction = direction;
    }

    public Order(Class<? extends Model> modelClass, String field,OrderDirection direction) {
        this.modelClass = modelClass;
        this.field = field;
        this.direction = direction;
    }

    public Class<? extends Model> getModelClass() {
        return modelClass;
    }

    public String getField() {
        return field;
    }

    public OrderDirection getDirection() {
        return direction;
    }

    public void setModelClass(Class<? extends Model> modelClass) {
        this.modelClass = modelClass;
    }

    public void setField(String field) {
        this.field = field;
    }

    public void setDirection(OrderDirection direction) {
        this.direction = direction;
    }
}
